﻿using System.Collections.Generic;
using System.ComponentModel;

namespace MyFloridaHouse.libSvOpenDistricts.PDF
{
    public class HouseMapRegions : INotifyPropertyChanged
    {
        #region INotifyPropertyChanged
        public event PropertyChangedEventHandler PropertyChanged;
        protected void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion

        private List<HouseMapRegion> _regionList;
        public List<HouseMapRegion> regionList
        {
            get { return _regionList; }
            set
            {
                if (_regionList != value)
                {
                    _regionList = value;
                    NotifyPropertyChanged("regionList");
                }
            }
        }
        private int _regionListSelectedIndex = 0;
        public int regionListSelectedIndex
        {
            get { return _regionListSelectedIndex; }
            set
            {
                if (_regionListSelectedIndex != value)
                {
                    _regionListSelectedIndex = value;
                    NotifyPropertyChanged("regionListSelectedIndex");
                }
            }
        }

        public HouseMapRegions()
        {
            regionList = new List<HouseMapRegion>();
            regionList.Add(new HouseMapRegion(enumHouseMapRegions.Northwest, "Northwest"));
            regionList.Add(new HouseMapRegion(enumHouseMapRegions.BigBend, "Big Bend"));
            regionList.Add(new HouseMapRegion(enumHouseMapRegions.Northeast, "Northeast"));
            regionList.Add(new HouseMapRegion(enumHouseMapRegions.CentralNorth, "Central North"));
            regionList.Add(new HouseMapRegion(enumHouseMapRegions.CentralSouth, "Central South"));
            regionList.Add(new HouseMapRegion(enumHouseMapRegions.TampaBay, "Tampa Bay"));
            regionList.Add(new HouseMapRegion(enumHouseMapRegions.South, "South"));
            regionList.Add(new HouseMapRegion(enumHouseMapRegions.Southeast, "Southeast"));
            regionList.Add(new HouseMapRegion(enumHouseMapRegions.MiamiDade, "Miami-Dade"));
        }
    }
}
